casts

<?
/* int */ $i = 1;
?> 


(double) 1         : <?= (float) 1 ?> 
(double) -1        : <?= (float) (-1) ?> 
(double) 1 / 2     : <?= (float) 1 / 2 ?> 
(double) -1 / 2    : <?= (float) (-1) / 2 ?> 
(double) (-7 / 2)  : <?= (float) ( (int) (-7 / 2) ) ?> 
(double) i++       : <?= (float) ($i++) ?> 
(int) (double) ++i : <?= (int) ((float) ($i++)) ?> 
(double) --i       : <?= (float) (--$i) ?> 

(int) 1.5          : <?= (int) 1.5 ?> 
(int) -1.5         : <?= (int) (-1.5) ?> 
(int) 1.5 / 2      : <?= (int) ((int) 1.5 / 2) ?> 
(int) -1.5 / 2     : <?= (int) ((int) (-1.5) / 2) ?> 
(int) (-7 / 2)     : <?= (int) ( (int) (-7 / 2) ) ?> 

+ 4 * (int) (9 / -2) : <?= +4 * (int) ( (int) (9 / -2) ) ?> 

"ala".length() / 2          : <?= (int) (strlen("ala") / 2) ?> 
(double) "ala".length() / 2 : <?= (float) strlen("ala") / 2 ?> 

(double) (double) (int) (int) Double.MIN_VALUE : <?= (float) ((float) ((int) ((int) 4.9E-324))) ?> 
(int) Double.MAX_VALUE         : <?= (int) 1.7976931348623157E308 ?> 
(int) Double.MIN_VALUE         : <?= (int) 4.9E-324 ?> 
(int) Double.NaN               : <?= (int) NAN ?> 
(int) Double.POSITIVE_INFINITY : <?= (int) INF ?> 
(int) Double.NEGATIVE_INFINITY : <?= (int) -INF ?> 

(double) Integer.MAX_VALUE     : <?= (float) 2147483647 ?> 
(double) Integer.MAX_VALUE + 1 : <?= (float) 2147483647 + 1 ?> 
(double) Integer.MAX_VALUE - 1 : <?= (float) 2147483647 - 1 ?> 
(double) Integer.MIN_VALUE     : <?= (float) ((int) -2147483648) ?> 
(double) Integer.MIN_VALUE + 1 : <?= (float) ((int) -2147483648) + 1 ?> 
(double) Integer.MIN_VALUE - 1 : <?= (float) ((int) -2147483648) - 1 ?> 

